import { DefaultTheme, LocaleSpecificConfig } from 'vitepress'
import { getZhNav } from './nav'
import { getENSidebar } from './sidebar'

// https://vitepress.dev/reference/site-config
export const ENConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
  title: 'OIS',
  description: 'OIS English documentation',
  lang: 'zh-CN',
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    darkModeSwitchLabel: '主题',
    docFooter: {
      prev: '上一篇',
      next: '下一篇'
    },
    lastUpdatedText: '最后更新',
    nav: getZhNav(),
    outline: {
      level: [2, 6],
      label: '目录'
    },
    returnToTopLabel: '返回顶部',
    sidebarMenuLabel: '菜单',
    sidebar: getENSidebar(),
    socialLinks: [{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }]
  }
}
